package cn.zcib.film.service;

import cn.zcib.film.bean.Admin;
import cn.zcib.film.bean.Role;
import cn.zcib.film.bean.vo.AdminVO;
import org.apache.ibatis.annotations.Select;
import org.springframework.data.relational.core.sql.In;

import java.util.List;

public interface AdminService {

    Admin login(String aName);

    Admin getAdminById(Integer aId);

    List<Admin> findAdmins(AdminVO vo);

    /**
     * 统计该角色下用户数量
     * @param rId 角色id
     * @return
     */
    int getAdminCountByRoleId(Integer rId);

    int saveAdminRole(Integer aId,Integer rId);

    Boolean modPwd(Integer aId,Integer newPassword,Integer oldPassword);

}
